package com.laijiale.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/** @author JoeZhou */
@ColumnWidth(20)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmpExcel implements Serializable {
    @ExcelProperty(value = {"员工数据统计表", "员工账号"})
    private String username;
    @ColumnWidth(40)
    @ExcelProperty(value = {"员工数据统计表", "头像地址"})
    private String avatar;
    @ExcelProperty(value = {"员工数据统计表", "手机号码"})
    private String phone;
    @ExcelProperty(value = {"员工数据统计表", "微信号码"})
    private String wechat;
    @ColumnWidth(30)
    @ExcelProperty(value = {"员工数据统计表", "邮箱地址"})
    private String email;
    @ExcelProperty(value = {"员工数据统计表", "用户性别"})
    private String gender;
    @ExcelProperty(value = {"员工数据统计表", "用户年龄"})
    private Integer age;
    @ExcelProperty(value = {"员工数据统计表", "籍贯省份"})
    private String province;
    @ColumnWidth(60)
    @ExcelProperty(value = {"员工数据统计表", "现居住地"})
    private String address;
    @ExcelProperty(value = {"员工数据统计表", "真实姓名"})
    private String realname;
    @ColumnWidth(30)
    @ExcelProperty(value = {"员工数据统计表", "身份证号"})
    private String idcard;
    @ColumnWidth(60)
    @ExcelProperty(value = {"员工数据统计表", "描述信息"})
    private String info;
    @ExcelProperty(value = {"员工数据统计表", "入职时间"})
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private LocalDateTime hiredate;
    @ExcelProperty(value = {"员工数据统计表", "创建时间"})
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private LocalDateTime created;
    @ExcelProperty(value = {"员工数据统计表", "修改时间"})
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private LocalDateTime updated;
}